<?php
/**
 * @file
 * Returns the HTML for a single Drupal page.
 *
 * Complete documentation for this file is available online.
 * @see https://drupal.org/node/1728148
 */
?>

<div id="page" ng-app="authors">
    <?php print render($page['help']); ?>

	<header class="header" id="header" role="banner">
		<div class="wrapper">

			<?php if ($logo): ?>
            <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" class="header__logo" id="logo">
                <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" class="header__logo-image" />
			</a>
			<?php endif; ?>

			<?php print render($page['header']); ?>
			<?php print render($page['navigation']); ?>

		</div>
	</header>
    <?php print $messages; ?>

	<?php if ($title): ?>
	<h1 class="page__title title element-invisible" id="page-title"><?php print $title; ?></h1>
	<?php endif; ?>

    <?php print render($page['highlighted']); ?>
    <?php echo bck_render_('ads-blog-1080x120');?>

	<div id="main">

        <section class="region region-sidebar-first column sidebar" ng-controller="sidebarCtrl">
            <div class="wrapper">


                <div ng-repeat="(k,v) in sidebar">
                    <div ng-if="!v.html"
                        ng-include="'/<?php echo path_to_theme(); ?>/js/ng-templates/' + v.block + '.html'"
                        onLoad="v"></div>
                    <div ng-if="v.html" ng-bind-html="v.content | to_trusted"></div>
                </div>


                <!--
                <div id="block-views-blogger-info-block-block-4" class="block block-views contextual-links-region first odd">
                    <div class="wrapper">
                        <div class="view view-blogger-info-block view-id-blogger_info_block view-display-id-block_4 blogger-block box view-dom-id-0f89ea60a6ee7545e4f85d23eb922940 jquery-once-2-processed">
                            <div class="view-content">
                                <div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
                                    <div class="views-field views-field-picture">
                                        <div class="field-content user-image">
                                            <a href="/blog/experts/402" class="active"><img typeof="foaf:Image" src="http://jessica.xenyo.net/sites/default/files/styles/medium/public/pictures/picture-402-1439537840.jpg?itok=XGsgzMDm" width="200" height="200" alt=""></a>
                                        </div>
                                    </div>
                                    <h4 class="views-field views-field-field-display-username">        <div class="field-content"><a href="/blog/experts/402" class="active">Ann Chan</a></div>  </h4>
                                    <div class="views-field views-field-field-text job-title">
                                        <div class="field-content">Sabon品牌經理</div>
                                    </div>
                                    <div class="views-field views-field-field-description-1">
                                        <p class="field-content"></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


                <div id="block-views-archive-block" class="block block-views contextual-links-region even">
                    <div class="wrapper">
                        <h2 class="block__title block-title">Archives</h2>
                        <div class="contextual-links-wrapper contextual-links-processed"><a class="contextual-links-trigger" href="#">Configure</a>
                            <ul class="contextual-links">
                                <li class="views-ui-edit first"><a href="/admin/structure/views/view/archive/edit/block?destination=blog/experts/402">Edit view</a></li>
                                <li class="block-configure last"><a href="/admin/structure/block/manage/views/archive-block/configure?destination=blog/experts/402">Configure block</a></li>
                            </ul>
                        </div>
                        <div class="view view-archive view-id-archive view-display-id-block view-dom-id-136aff0bb869cfc50a3a1ccce7e87bb7">
                            <div class="view-content">
                                <div class="item-list">
                                    <ul class="views-summary">
                                        <li><a href="/blog/experts/402/archive/201508">August 2015</a> (1) </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


                <div id="block-block-11" class="block block-block contextual-links-region odd">
                    <div class="wrapper">
                        <div class="contextual-links-wrapper contextual-links-processed"><a class="contextual-links-trigger" href="#">Configure</a>
                            <ul class="contextual-links">
                                <li class="block-configure first last"><a href="/admin/structure/block/manage/block/11/configure?destination=blog/experts/402">Configure block</a></li>
                            </ul>
                        </div>
                          <ins><a href="http://w08.scmedia.com.hk/revive_ads/www/delivery/ck.php?oaparams=2__bannerid=129__zoneid=17__cb=2545eb7c2b__oadest=http%3A%2F%2Fwww.jessicahk.com%2Fcampaign%2FMSR2016%2F%23voting" target="_blank"><img src="http://w08.scmedia.com.hk/revive_ads/www/images/8fc98262ab9fd08ebb9490f92406f6f0.png" width="300" height="600" alt="" title="" border="0"></a><div id="beacon_2545eb7c2b" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src="http://w08.scmedia.com.hk/revive_ads/www/delivery/lg.php?bannerid=129&amp;campaignid=37&amp;zoneid=17&amp;loc=http%3A%2F%2Fjessica.xenyo.net%2Fblog%2Fexperts%2F402&amp;referer=http%3A%2F%2Fjessica.xenyo.net%2Fexperts&amp;cb=2545eb7c2b" width="0" height="0" alt="" style="width: 0px; height: 0px;"></div></ins>
                        <script async="" src="//w08.scmedia.com.hk/revive_ads/www/delivery/asyncjs.php"></script>
                    </div>
                </div>


                <div id="block-views-blogger-page-block-1" class="block block-views contextual-links-region last even">
                    <div class="wrapper">
                        <h2 class="block__title block-title">Latest Sharings</h2>
                        <div class="contextual-links-wrapper contextual-links-processed"><a class="contextual-links-trigger" href="#">Configure</a>
                            <ul class="contextual-links">
                                <li class="views-ui-edit first"><a href="/admin/structure/views/view/blogger_page/edit/block_1?destination=blog/experts/402">Edit view</a></li>
                                <li class="block-configure last"><a href="/admin/structure/block/manage/views/blogger_page-block_1/configure?destination=blog/experts/402">Configure block</a></li>
                            </ul>
                        </div>
                        <div class="view view-blogger-page view-id-blogger_page view-display-id-block_1 listing-block blog-list row-list aside-block view-dom-id-8820581ba7ea659a5c0e178b6a3460d2">
                            <div class="view-content">
                                <div class="views-row views-row-1 views-row-odd views-row-first">
                                    <div class="views-field views-field-field-image block-image">
                                        <div class="field-content">
                                            <a href="/blog/mai-lou-dan-ming-hao-huan-shi-lian-ming-hao"><img class="" typeof="foaf:Image" src="http://jessica.xenyo.net/sites/default/files/styles/thumbnail/public/field/field_image/blog/diamond-typeia.png?itok=iaru9E6Z" width="100" height="100" alt=""></a>
                                        </div>
                                    </div>
                                    <div class="content">
                                        <h4 class="views-field views-field-title">        <span class="field-content"><a href="/blog/mai-lou-dan-ming-hao-huan-shi-lian-ming-hao">買樓單名好還是聯名好？</a></span>  </h4>
                                        <h4 class="views-field views-field-field-display-username">        <div class="field-content">Christine Ng</div>  </h4> </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                -->

            </div>
        </section>

		<div id="content" class="column region-content" role="main" ng-controller="contentCtrl">
    		<div class="wrapper">
    			<a id="main-content"></a>
    			<?php print render($title_prefix); ?>
    			<?php print render($title_suffix); ?>
    			<?php print render($tabs); ?>
    			<?php if ($action_links): ?>
    			<ul class="action-links"><?php print render($action_links); ?></ul>
    			<?php endif; ?>

                <?php print $breadcrumb; ?>

                <div id="block-views-blogger-page-my-blog-desktop" class="block block-views contextual-links-region">
                    <div class="wrapper">
                        <div class="view view-blogger-page view-id-blogger_page view-display-id-my_blog_desktop blog-list article-list row-list view-dom-id-2924470d8d5ad1da88b663e5de713f99 jquery-once-2-processed">
                            <div class="view-content">
                                <div class="views-row views-row-1 views-row-odd views-row-first views-row-last"
                                    ng-repeat="(k,v) in content">
                                    <div class="views-field views-field-field-image block-image">
                                        <p class="field-content">
                                            <a href="/blog/singing-shower" ng-bind-html="v.field_image"></a>
                                        </p>
                                    </div>
                                    <h2 class="views-field views-field-title">        <span class="field-content" ng-bind-html="v.node_title"></span>  </h2>
                                    <div class="views-field views-field-category">        <span class="field-content" ng-bind-html="v.field_category"></span>  </div>
                                    <div class="views-field views-field-created submitted"> <span class="field-content" ng-bind="v.node_created"></span> </div>
                                    <div class="views-field views-field-body quote">
                                        <div class="field-content" ng-bind-html="v.field_body"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div ng-show="loading" id="article-loading"></div>

    			<?php //print render($page['content']); ?>
    			<?php //print $feed_icons; ?>
    		</div>
		</div>
		<?php print render($page['below_content']); ?>
	</div>
    <?php print render($page['bottom']); ?>
	<?php print render($page['footer']); ?>

</div>

<?php print render($page['popup']); ?>
<?php print render($page['overlay']); ?>
<?php print render($page['hidden']); ?>
